#include <stdio.h>
int main()
{
    char arr[]="Please re-enter the number";
    int a;
    int b;
    int f;
    int g;
    scanf("%d %d",&f,&g);
    if (f<=g && f>0 && g>0 &&f<10 &&g<10)
    {
        for(a = 1;a<=f;a++)
        {
            for(b = 1; b<=g;b++)
            {
                int c =  a*b;
                printf("%d*%d=%d\t",a,b,c);
            }
            printf("\n");
        }
    }
    else if (f>g ||f <= 0 || g<=0 ||f>9 ||g>9)
    {
        printf("%s\n",arr);
    }
    return 0;

}